﻿using MagicWorld.DDD.Domain.Entity;

namespace MagicWorld.DDD.Domain.Event.Impl
{
    public class LevelUpEvent : IEvent
    {
        private Player player;

        public LevelUpEvent(Player player)
        {
            this.player = player;
        }

    }

    public class LevelUpHandler
    {
        public void Handle(Player player)
        {
            player.SetLevel(player.Level + 1);
        }
    }
}
